/**
 * 项目名：五位一体化工安全信息平台
 * 日期：    2019-12-08 15:07:43
 * Copyright (c) 2015- joysuch-版权所有
 */
package com.joysuch.wwyt.bp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.joysuch.wwyt.bp.bean.contractor.BpCertExpireRemindBean;
import com.joysuch.wwyt.bp.bean.contractor.BpContractorBean;
import com.joysuch.wwyt.bp.bean.contractor.BpContractorCertBean;
import com.joysuch.wwyt.bp.entity.contractor.BpContractor;
import com.joysuch.wwyt.core.bean.SimpleInfoBean;
import com.joysuch.wwyt.core.common.ajax.ResultBean;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface BpContractorService {

    ResultBean save(BpContractorBean bean);

    ResultBean page(Pageable pageable, String contractorType,Boolean locateSync, String companyName);

    ResultBean allContractor();

    ResultBean nullify(Long id);

    ResultBean getById(Long id);

    BpContractor get(Long id);

    ResultBean contractorCertSave(BpContractorCertBean bean);

    ResultBean contractorCertNullify(Long id);

    ResultBean certRemindSave(BpCertExpireRemindBean bean);

    ResultBean certRemindGet();

    ResultBean companyList();

    List<Long> findIdsByName(String name);

    Page<SimpleInfoBean> simplePage(Pageable page, String nameOrCode);

    void batchSyncData(List<BpContractor> datas);

    ResultBean batchNullify(List<Long> ids);

}